package com.roa.web.crud;

import java.util.Map;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

public interface IReadable {

	@RequestMapping(method=RequestMethod.GET, produces="application/json")
	@ResponseBody
	public Map<String, Object> read();
	
	@RequestMapping(value="/{param}", method=RequestMethod.GET, produces="application/json")
	@ResponseBody
	public Map<String, Object> readByParameter(@PathVariable("param") Object id);
}
